<!DOCTYPE html>
<style>
rect {
  fill: green;
}
</style>
<input></input>
<svg width="100" height="100">
  <use xlink:href="#g" transform="translate(50,50)"></use>
  <g id="g">
    <rect id="r" x="0" y="0" width="50" height="50"></rect>
  </g>
</svg>
